<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <title>考勤</title>
    <link rel="stylesheet" type="text/css" href="../css/base.css" />
    <link rel="stylesheet" type="text/css" href="../css/style.css" />
    <link rel="stylesheet" type="text/css" href="../css/aui-pull-refresh.css" />
    <link rel="stylesheet" type="text/css" href="../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../css/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="./css/kaoqin.css" />

</head>

<body>
    <div id="app" v-cloak>
        <div class="topbox">
            <div class="my_user_info_cont">
                <div class="my_user_img"><img :src="userHeadImg" /></div>
                <div class="my_user_info">
                    <div class="my_user_name">{{userName}}</div>
                    <div class="my_user_postion">{{postionName}}</div>
                </div>
            </div>
        </div>
        <section id="main_refresh" class="aui-refresh-content">
            <div class="posibox boxsty">
                <div v-if="!iskaoqin" class="dakapage">
                    <div class="kaoqin_title">
                        <!-- v-on:click="do_opentimer()" -->
                        <div class="kaoqiname fl">
                            <div class="kaoqintime">上班{{setupData.workOnTime}}</div>
                            <div class="kaoqinstatus">
                                <div v-if="onWork.checkStatus==0">未打卡</div>
                                <div v-if="onWork.checkStatus>0" class="isdaka">
                                    <i class="icon iconfont icon-xuanze-lan"></i>
                                    {{onWork.checkTime}}已打卡
                                    <span v-if="onWork.checkStatus==2">{{onWork.checkStatusDesc}}</span>
                                </div>
                            </div>
                        </div>
                        <!-- v-on:click="do_opentimer()" -->
                        <div class="kaoqiname fr">
                            <div class="kaoqintime">下班{{setupData.workOffTime}}</div>
                            <div class="kaoqinstatus">
                                <div v-if="offWork.checkStatus==0">未打卡</div>
                                <div v-if="offWork.checkStatus>0" class="isdaka">
                                    <i class="icon iconfont icon-xuanze-lan"></i>
                                    {{offWork.checkTime}}已打卡
                                    <span v-if="offWork.checkStatus==2">{{offWork.checkStatusDesc}}</span>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div v-if="onWork.checkStatus==0" class="qiaodao" v-on:click="do_daka(1)">
                        <div class="qd_main">
                            <div class="qd_type">上班打卡</div>
                            <div class="qd_time">{{nowTime}}</div>
                        </div>
                    </div>
                    <div v-if="onWork.checkStatus>0&&offWork.checkStatus==0" class="qiaodao" v-on:click="do_daka(2)">
                        <div class="qd_main">
                            <div class="qd_type">下班打卡</div>
                            <div class="qd_time">{{nowTime}}</div>
                        </div>
                    </div>
                    <div v-if="onWork.checkStatus>0&&offWork.checkStatus>0" class="qiaodao qd_over">
                        <div class="qd_main">
                            <div class="qd_type">打卡完成</div>
                            <div class="qd_time">{{nowTime}}</div>
                        </div>
                    </div>

                    <div class="daka_address">
                        {{GPSLocation}}<span v-on:click="reload_address()" style="color: #289fff; margin-left: 10px;" >重新获取</span>
                    </div>
                    <div v-if="isArea" class="daka_area">
                        已进入打卡区域
                    </div>
                    <div v-if="!isArea" class="daka_area" style="color: #999;">
                        不在打卡区内
                    </div>

                </div>
                <!--  -->
                <div v-if="iskaoqin" class="daka_result">
                    <div class="dk_result_box">
                        <div class="dk_result_lft fl">
                            <div class="result_title">{{dakamsg.dakaType}}打卡成功</div>
                            <div class="result_time">打卡时间<span>{{dakamsg.dakaTimer}}</span><span>{{dakamsg.dakaStatus}}</span> </div>
                        </div>
                        <div class="dk_result_rgt fr" v-on:click="close_succeed()">
                            <i class="icon iconfont icon-guanbi"></i>
                        </div>
                    </div>
                    <div class="dk_succeed">
                        <div class="succeedpic">
                            <img src="../image/daka_succceed.png">
                        </div>
                    </div>


                </div>
            </div>
        </section>
    </div>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/jquery-3.1.1.min.js"></script>
<script type="text/javascript " src="../script/vant/vue.js"></script>
<script type="text/javascript " src="../script/vant/vant.js"></script>
<script type="text/javascript" src="../script/config.js"></script>
<script type="text/javascript" src="../script/aui-toast.js"></script>
<script type="text/javascript" src="../script/aui-pull-refresh.js"></script>
<script type="text/javascript" src="../script/aui-scroll.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
<script type="text/javascript" src="../script/mui.min.js"></script>
<script type="text/javascript " src="../script/moment/moment.js"></script>
<script type="text/javascript" src="js/kaoqin.js"></script>

</html>